package main


func main() {
	nums := []int{1,2,3}
	sum := 0
	for idx, num := range nums {
		sum += num
		println(idx, num)
	}
	println("===========")
	println(sum)

	kvs := map[string]string{"a":"aa", "b":"bb"} // 声明并初始化一个map
	for k,v := range kvs {
		println(k, v)
	}
	
	for i,c := range "hello" {
		println(i, c)
	}
}



